﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Master/AdminMaster.Master" AutoEventWireup="true" CodeBehind="RelationshipManageCtoC.aspx.cs" Inherits="HZ.DrugTrade.Web.Admin.RelationQuery.RelationshipManageCtoC" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style>
        .show {
            display: none;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="maincon">
        <div id="note">
            配送关系审核
        </div>
        <div id="note2">
        </div>
    </div>
    <div id="tabcontent">
        <table class="querylist">
            <tr>
                <td>
                    <table class="querylist">
                        <tr>
                            <td align="right">
                                <asp:Label ID="lblUserId" runat="server" Text="产品名称："></asp:Label>
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtGoodsName" runat="server"></asp:TextBox>
                            </td>
                            <td align="right">
                                <asp:Label ID="lblIsUsing" runat="server" Text="规格："></asp:Label>
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtOutlookc" runat="server"></asp:TextBox>
                            </td>
                            <td align="right">
                                <asp:Label ID="lblRoleName" runat="server" Text="材质："></asp:Label>
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtMaterial" runat="server"></asp:TextBox>
                            </td>

                            <td rowspan="4">
                                <hz:HzButton ID="btnQuery0" runat="server" OnClick="btnQuery_Click" Text="查  询" CssClass="btn" />&nbsp;<hz:HzButton ID="btnExport" runat="server" ToolTip="导出查询条件下的全部配送关系" Text="导出Excel" CssClass="btn" OnClick="btnExport_Click" />
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                <asp:Label runat="server" ID="lblPinyinCode" Text="产品编号："></asp:Label>
                            </td>
                            <td align="left">
                                <asp:TextBox runat="server" ID="txtProcureCatalogID"></asp:TextBox>
                            </td>
                            <td align="right">投标企业：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtCompanyName_TB" runat="server"></asp:TextBox>
                            </td>
                            <td align="right">
                                <asp:Label ID="lblIsOnline" runat="server" Text="单位："></asp:Label>
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtUnit" runat="server"></asp:TextBox>
                            </td>
                        </tr>

                        <tr>
                            <td align="right">状态：
                            </td>
                            <td align="left">
                                <asp:DropDownList ID="DllStatusType" runat="server">
                                    <%--<asp:ListItem Text="(全部)" Value=""></asp:ListItem>
                                   <asp:ListItem Text="未提交" Value="-1"></asp:ListItem>
                                    <asp:ListItem Text="未确定" Value="0"></asp:ListItem>
                                    <asp:ListItem Text="已同意" Value="1"></asp:ListItem>
                                    <asp:ListItem Text="已拒绝" Value="2"></asp:ListItem>--%>
                                    <asp:ListItem Text="可配送" Value="3" Selected="True"></asp:ListItem>
                                </asp:DropDownList>
                            </td>
                            <td align="right">配送企业：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtCompanyName_PS" runat="server"></asp:TextBox>
                            </td>
                            <td align="right">地区：
                            </td>
                            <td align="left">
                                <!-- <asp:DropDownList ID="DllArea" runat="server">
                                    <asp:ListItem Text="(全区)" Value=""></asp:ListItem>
                                    <asp:ListItem Text="呼和浩特市" Value="呼和浩特市"></asp:ListItem>
                                    <asp:ListItem Text="包头市" Value="包头市"></asp:ListItem>
                                    <asp:ListItem Text="乌海市" Value="乌海市"></asp:ListItem>
                                    <asp:ListItem Text="赤峰市" Value="赤峰市"></asp:ListItem>
                                    <asp:ListItem Text="通辽市" Value="通辽市"></asp:ListItem>
                                    <asp:ListItem Text="鄂尔多斯市" Value="鄂尔多斯市"></asp:ListItem>
                                    <asp:ListItem Text="呼伦贝尔市" Value="呼伦贝尔市"></asp:ListItem>
                                    <asp:ListItem Text="巴彦淖尔市" Value="巴彦淖尔市"></asp:ListItem>
                                    <asp:ListItem Text="乌兰察布市" Value="乌兰察布市"></asp:ListItem>
                                    <asp:ListItem Text="兴安盟" Value="兴安盟"></asp:ListItem>
                                    <asp:ListItem Text="锡林郭勒盟" Value="锡林郭勒盟"></asp:ListItem>
                                    <asp:ListItem Text="阿拉善盟" Value="阿拉善盟"></asp:ListItem>
                                </asp:DropDownList>-->
                                <asp:DropDownList ID="ddlCity" runat="server">
                                </asp:DropDownList>
                            </td>
                        </tr>

                        <tr>
                            <td align="right">审核状态：
                            </td>
                            <td align="left">
                                <asp:DropDownList ID="DllAuditStatusType" runat="server">
                                    <asp:ListItem Text="(全部)" Value=""></asp:ListItem>
                                    <asp:ListItem Text="未审核" Value="0"></asp:ListItem>
                                    <asp:ListItem Text="审核已通过" Value="1"></asp:ListItem>
                                    <asp:ListItem Text="审核未通过" Value="2"></asp:ListItem>
                                </asp:DropDownList>
                            </td>
                            <td align="right">配送企业编号：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtCompanyID_PS" runat="server"></asp:TextBox>
                            </td>
                            <td align="right">审核人：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtAuditer" runat="server"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">申请删除配送关系状态：
                            </td>
                            <td align="left">
                                <asp:DropDownList ID="dllRequestdelete" runat="server">
                                    <asp:ListItem Text="(全部)" Value=""></asp:ListItem>
                                    <asp:ListItem Text="已申请" Value="0"></asp:ListItem>
                                    <asp:ListItem Text="未申请" Value="1"></asp:ListItem>
                                </asp:DropDownList>
                            </td>
                            <td align="right">拼音码：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtpinyincode" runat="server"></asp:TextBox>
                            </td>
                            <td align="right">
                                <asp:Label Text="项目：" ID="lblProjectid" runat="server" />
                            </td>
                            <td align="left">
                                <asp:DropDownList ID="ddlProjectid" runat="server">
                                    <asp:ListItem Value="0002">2014年内蒙古自治区网上高值医用耗材阳光采购项目</asp:ListItem>
                                    <asp:ListItem Value="0001">2012年内蒙古自治区网上医用耗材采购项目</asp:ListItem>
                                </asp:DropDownList>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </div>
    <asp:GridView ID="GvRelaion" CssClass="mainlist" runat="server" AutoGenerateColumns="False" EmptyDataText="暂无符合要求的数据！" OnRowDataBound="GvRelaion_RowDataBound" DataKeyNames="AreaID,CompanyID_PS,ProcureCatalogID,IsUsing,CompanyID_TB">
        <Columns>
            <asp:TemplateField HeaderText="序号">
                <ItemTemplate>
                    <%#Container.DataItemIndex + 1 + AspNetPager1.PageSize * (AspNetPager1.CurrentPageIndex-1) %>
                </ItemTemplate>
                <HeaderStyle Width="30px" />
            </asp:TemplateField>
            <asp:BoundField DataField="ProcureCatalogID" HeaderText="产品编号" />
            <asp:BoundField DataField="GoodsName" HeaderText="产品名称" />
            <asp:BoundField DataField="Outlookc" HeaderText="规格型号" />
            <asp:BoundField DataField="Material" HeaderText="材质" />
            <asp:BoundField DataField="Unit" HeaderText="最小计量单位" />
            <asp:BoundField DataField="PackUnit" HeaderText="包装单位" />
            <asp:BoundField DataField="CompanyName_SC" HeaderText="生产企业" />
            <asp:BoundField DataField="CompanyName_TB" HeaderText="投标企业" />
            <asp:BoundField DataField="CompanyName_PS" HeaderText="配送企业" />
            <asp:BoundField DataField="AreaName" HeaderText="配送地区" />
            <asp:BoundField DataField="Status" HeaderText="确认状态" />
            <asp:BoundField DataField="Auditer" HeaderText="审核人" />
            <asp:BoundField DataField="AuditStatus" HeaderText="审核状态" />
            <asp:BoundField DataField="AuditReason" HeaderText="原因" />
            <asp:BoundField DataField="Requestdelete" HeaderText="申请删除配送关系状态" />
            <asp:TemplateField HeaderText="操作">
                <ItemTemplate>
                    <%--Enabled='<%#(Eval("Status").ToString()=="已同意"|| Eval("Status").ToString()=="可配送")?true:false %>' --%>
                    <hz:HzLinkButton ID="lbtnDel" runat="server" CommandName="Del" OnClientClick="if(!this.disabled){return  confirm('确认要删除此行信息吗？');}else{return false;}"
                        OnClick="btn_Del" OperateType="删除">删除</hz:HzLinkButton>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField>
                <HeaderTemplate>
                    <asp:CheckBox ID="addTable_chkAll" runat="server" OnClick="SelectAllCheckboxes(this,'ctl00_ContentPlaceHolder1_GvRelaion','ctl00_ContentPlaceHolder1_GvRelaion_ctl01_addTable_chkAll');" />
                </HeaderTemplate>
                <ItemTemplate>
                    <asp:CheckBox ID="checkbox1" runat="server" Enabled='<%#getCheckstatus(Eval("Status").ToString(),3) %>' onclick="chkChecked(this,'ctl00_ContentPlaceHolder1_GvRelaion','ctl00_ContentPlaceHolder1_GvRelaion_ctl01_addTable_chkAll');" />
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
    </asp:GridView>
    <div class="page">
        <webdiyer:AspNetPager ID="AspNetPager1" runat="server" OnPageChanged="AspNetPager1_OnPageChanged">
        </webdiyer:AspNetPager>
    </div>
    <table class="querylist">
        <tr>
            <td align="right">
                <hz:HzButton ID="hzbtnAgree" runat="server" Width="100px" ToolTip="审核通过" Text="审核通过" OperateType="审核"
                    CssClass="btn" OnClick="hzbtnAgree_Click" OnClientClick="if(checkSelectedItems('ctl00_ContentPlaceHolder1_GvRelaion','请至少选定一条记录！')) {return confirm('确定审核通过这些选择的记录吗？');}return false;" />
            </td>
            <td align="left">
                <hz:HzButton ID="hzbtnDeny" runat="server" ToolTip="审核不通过" Text="审核不通过" Width="100px" OperateType="审核"
                    CssClass="btn" Enabled="true" OnClick="hzbtnDeny_Click" OnClientClick="if(checkSelectedItems('ctl00_ContentPlaceHolder1_GvRelaion','请至少选定一条记录！')) {return confirm('确定审核不通过这些选择的记录吗？');}return false;" />
            </td>
        </tr>
        <tr>
            <td colspan="2" align="left">
                <asp:CheckBoxList ID="ckblistReason" runat="server" RepeatColumns="2" RepeatDirection="Horizontal" RepeatLayout="Table" TextAlign="Left">
                    <asp:ListItem>缺少配送协议；</asp:ListItem>
                    <asp:ListItem>缺少单位公章；</asp:ListItem>
                    <asp:ListItem>缺少法人（授权人）签字；</asp:ListItem>
                    <asp:ListItem>协议时间不符；</asp:ListItem>
                    <asp:ListItem>协议书中缺少该配送地区；</asp:ListItem>
                </asp:CheckBoxList>
                <br />
                其他原因：<asp:TextBox ID="txtReason" runat="server" TextMode="MultiLine" Height="37px"
                    Width="385px"></asp:TextBox>
            </td>
        </tr>
    </table>
    <div class="listip">
        <ul>
            <li>说明：<span>检查本企业采购产品的配送关系；因数据量巨大，请先输入查询条件，再点击查询以便提高查询速度； </span></li>
        </ul>
    </div>
</asp:Content>
